# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nemo-keepalive
pkgver=1.8.4
pkgrel=1
pkgdesc="Nemo's Keepalive"
url="https://github.com/sailfishos/nemo-keepalive"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="
	libiphb-dev
	mce-dev
	qt5-qtdeclarative-dev
	"
makedepends="$depends_dev
	qt5-qtbase-dev
	qtchooser
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/sailfishos/nemo-keepalive/archive/$pkgver/nemo-keepalive-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="
7543931dd15953147af1bafae5e7bb83c9a6d9404df00156b19470931fe8ffebaf550a28146c43e73bfebba7fb2e3094707e1d0c7b146c0067a24a77d41cbd82  nemo-keepalive-1.8.4.tar.gz
"
